package com.zr.dto;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;

import java.util.HashSet;
import java.util.Set;

/**
 * @author: peterChen
 * @date: 2019/11/12 14:05
 * @description: com.zr.dto
 * @version: 1.0
 */
@Data
@Slf4j
public class UserDTO {
    private Long id;
    private String username;
    private String password;
    private String token;
    private String introduction;
    private Set<RoleDTO> roles;
    private String name;
    private String uid;

    public UserDTO() {
    }

    public UserDTO(Long id, String username, String password, String token, String introduction, Set<RoleDTO> roles, String name, String uid) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.token = token;
        this.introduction = introduction;
        this.roles = roles;
        this.name = name;
        this.uid = uid;
    }
}
